#include "model.h"
#include "toolkits/includes/glut.h"
#include "toolkits/includes/glm.h"

extern GLMmodel *tower, *key, *castle, *hero;

Model::Model() {
}

GLMmodel* Model::readObj(char *s) {
	GLMmodel *model = glmReadOBJ(s);
	glmUnitize(model);
	glmFacetNormals(model);
	glmVertexNormals(model,90);
	return model;
}

void Model::loadModels() {
	tower = readObj("Models/tower.obj");
	key = readObj("Models/key.obj");
	castle = readObj("Models/castle.obj");
	hero = readObj("Models/hero.obj");
}